package com.lhy.mymall.service;

import com.github.pagehelper.PageInfo;
import com.lhy.mymall.exception.MallException;
import com.lhy.mymall.request.AddCategoryReq;
import com.lhy.mymall.vo.CategoryVO;

import java.util.List;

/**
 * @author: 卢辉宇
 * @date: 2022/12/14 13:27
 * @description:
 */
public interface CategoryService{
    void addCategory(AddCategoryReq addCategoryReq) throws MallException;

    void deleteCategory(Integer id) throws MallException;

    PageInfo listForAdmin(Integer pageNum, Integer pageSize);

    List<CategoryVO> listCategoryForCustomer();
}
